export default{
    state:{
        dataList:[
            {name:"苹果",pirce:5.6,quatity:0},
            {name:"橘子",pirce:4.5,quatity:0},
            {name:"香蕉",pirce:6.6,quatity:0},
            {name:"鸭梨",pirce:7.7,quatity:0},
        ]
    },
    setStateMessage(str){
        this.state.message = str
    },
    reSetQuatity(){
        this.state.dataList.forEach(data => {
            data.quatity = 0
        })
    }
}